package oomtest;

/**
 * @description: TODO
 * @author: wzj
 * @create: 2018/11/28 8:26
 */

/**
 * -Xss128k
 */
public class StackOF {
    private int stackLen=1;
    public void stackLeak(){
        stackLen++;
        stackLeak();
    }

    public static void main(String[] args) {
        StackOF stackOF=new StackOF();
        try {
            stackOF.stackLeak();
        } catch (Throwable e) {
            System.out.println("++++++++++"+stackOF.stackLen);
            throw e;
        }
    }
}
